<template>  
<el-container class="userindex" style="height: 100%;">
  <el-aside width="210px" style="background-color: rgb(238, 241, 246);overflow: hidden;">
    <el-menu :default-openeds="['1','3']">
      <el-submenu index="1">
        <el-menu-item-group>
    <img :src="'http://localhost:3000/upload/'+shuaxin.headpic" width="100px" height="100px" class="myimg">
    <h3 class="myh3">{{shuaxin.name}}</h3>
          <el-menu-item><router-link to="/userindex/account">我的钱包</router-link></el-menu-item>
          <el-menu-item><router-link to="/userindex/account">账号设置</router-link></el-menu-item>
          <el-menu-item><router-link to="/userindex/order">我的订单</router-link></el-menu-item>
          <el-menu-item><router-link to="/userindex/collect">我的收藏</router-link></el-menu-item>
          <el-menu-item><router-link to="/userindex/account">联系客服</router-link></el-menu-item>
        </el-menu-item-group>
      </el-submenu>
    </el-menu>
  </el-aside>
  <el-container>
    <router-view></router-view>
  </el-container>
</el-container>
</template>

<script>
  export default {
    name: 'UserindexView',
    computed: {
    shuaxin() {
      return this.$store.state.user;
    }
  }
  };
</script>

<style scoped>
  .userindex{
    margin: 0 auto;
    width: 1100px;
  }
  .el-menu-item{
    font-size: 16px;
    text-align : left
  }
  .title{
    font-size: 18px;
    text-align : left;
  }
  *{
    text-align : left;
    text-decoration:none;
  }
  .myimg{
    border-radius:50%;
    position: relative;
    left: 30px;
    margin-bottom: 30px;
  }
  .myh3{
    margin-left: 54px;
  }
  .el-aside{overflow: hidden;}
</style>